import Deom1.Animal;
import Deom1.Cat;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-16
 * Time: 13:30
 */
public class Main {
    public static void main(String[] args) {
        //实例化Cat类对象
        //Cat cat = new Cat("喵喵");
        //cat.func();
        //cat.fun();
        //向上转型  实现多态
        Animal animal = new Cat("喵喵");
        animal.fun();
    }
}
